﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EdLogueoHoras.ascx.cs" Inherits="SistemaWeb.Editores.EdLogueoHoras" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>


<ext:Window ID="popupEditor" runat="server" Collapsible="true" 
            Icon="ClockAdd" Title="Logueo de Horas" 
            Width="400" Height="400" AutoShow="true" Modal="true" ShowOnLoad="false"
            BodyStyle="padding:15px;">
    <Body>
        <ext:FormLayout ID="FormLayout1" runat="server" ElementStyle="padding:2px;" >
            <Anchors>
                <ext:Anchor>
                    <ext:TextField ID="txtNombreRH" ReadOnly="true" runat="server" FieldLabel="Recurso" Width="250">
                    </ext:TextField>
                </ext:Anchor>
                <ext:Anchor>
                    <ext:TextField ID="txtNombreTarea" ReadOnly="true" runat="server" FieldLabel="Tarea" Width="250">
                    </ext:TextField>
                </ext:Anchor>
                <ext:Anchor>
                    <ext:TextField ID="txtHorasAsignadas" AllowBlank="false" runat="server" ReadOnly="true" FieldLabel="Hs Asignadas" Width="250">
                    </ext:TextField>
                </ext:Anchor>
                <ext:Anchor>
                    <ext:TextField ID="txtHorasConsumidas" AllowBlank="false" runat="server" ReadOnly="true" FieldLabel="Hs Consumidas" Width="250">
                    </ext:TextField>
                </ext:Anchor>
                <ext:Anchor>
                    <ext:TextField ID="txtHoras" AllowBlank="false" runat="server" FieldLabel="Horas (+ -)" Width="250">
                    </ext:TextField>
                </ext:Anchor>
            </Anchors>
        </ext:FormLayout> 
    </Body>
    <Buttons>
        <ext:Button ID="SaveButton" runat="server" Text="Save" Icon="Disk">
            <AjaxEvents>
                <Click OnEvent="Guardar" Failure="Ext.MessageBox.alert('Saving failed', 'Error during ajax event');">
                    <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="={#{popupEditor}.body}" />
                </Click>
            </AjaxEvents>
        </ext:Button>
        <ext:Button ID="CancelButton" runat="server" Text="Cancel" Icon="Cancel">
            <Listeners>
                <Click Handler="#{popupEditor}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
